/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.tor.tribes.types;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 *
 * @author Torridity
 */
@Entity
@Table(name = "ReportBuildings")
public class ZebraReportBuilding {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    @OneToOne(cascade= CascadeType.ALL)
    private ZebraReport report;
    @OneToOne
    private DSBuilding building;
    @Enumerated(EnumType.STRING)
    private int levelBefore;
    private int levelAfter;

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the report
     */
    public ZebraReport getReport() {
        return report;
    }

    /**
     * @param report the report to set
     */
    public void setReport(ZebraReport report) {
        this.report = report;
    }

    /**
     * @return the building
     */
    public DSBuilding getBuilding() {
        return building;
    }

    /**
     * @param building the building to set
     */
    public void setBuilding(DSBuilding building) {
        this.building = building;
    }

    /**
     * @return the levelBefore
     */
    public int getLevelBefore() {
        return levelBefore;
    }

    /**
     * @param levelBefore the levelBefore to set
     */
    public void setLevelBefore(int levelBefore) {
        this.levelBefore = levelBefore;
    }

    /**
     * @return the levelAfter
     */
    public int getLevelAfter() {
        return levelAfter;
    }

    /**
     * @param levelAfter the levelAfter to set
     */
    public void setLevelAfter(int levelAfter) {
        this.levelAfter = levelAfter;
    }
}
